3.63 \(\int \frac{\left (c+d x^4\right )^2}{a+b x^4} \, dx\)

Optimal. Leaf size=253 \[ -\frac{(b c-a d)^2 \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{9/4}}+\frac{(b c-a d)^2 \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{9/4}}-\frac{(b c-a d)^2 \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} a^{3/4} b^{9/4}}+\frac{(b c-a d)^2 \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right )}{2 \sqrt{2} a^{3/4} b^{9/4}}+\frac{d x (2 b c-a d)}{b^2}+\frac{d^2 x^5}{5 b} \]

[Out]

(d*(2*b*c - a*d)*x)/b^2 + (d^2*x^5)/(5*b) - ((b*c - a*d)^2*ArcTan[1 - (Sqrt[2]*b
^(1/4)*x)/a^(1/4)])/(2*Sqrt[2]*a^(3/4)*b^(9/4)) + ((b*c - a*d)^2*ArcTan[1 + (Sqr
t[2]*b^(1/4)*x)/a^(1/4)])/(2*Sqrt[2]*a^(3/4)*b^(9/4)) - ((b*c - a*d)^2*Log[Sqrt[
a] - Sqrt[2]*a^(1/4)*b^(1/4)*x + Sqrt[b]*x^2])/(4*Sqrt[2]*a^(3/4)*b^(9/4)) + ((b
*c - a*d)^2*Log[Sqrt[a] + Sqrt[2]*a^(1/4)*b^(1/4)*x + Sqrt[b]*x^2])/(4*Sqrt[2]*a
^(3/4)*b^(9/4))

_______________________________________________________________________________________

Rubi [A]  time = 0.400891, antiderivative size = 253, normalized size of antiderivative = 1., number of steps used = 11, number of rules used = 7, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.368 \[ -\frac{(b c-a d)^2 \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{9/4}}+\frac{(b c-a d)^2 \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{9/4}}-\frac{(b c-a d)^2 \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} a^{3/4} b^{9/4}}+\frac{(b c-a d)^2 \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right )}{2 \sqrt{2} a^{3/4} b^{9/4}}+\frac{d x (2 b c-a d)}{b^2}+\frac{d^2 x^5}{5 b} \]

Antiderivative was successfully verified.

[In]  Int[(c + d*x^4)^2/(a + b*x^4),x]

[Out]

(d*(2*b*c - a*d)*x)/b^2 + (d^2*x^5)/(5*b) - ((b*c - a*d)^2*ArcTan[1 - (Sqrt[2]*b
^(1/4)*x)/a^(1/4)])/(2*Sqrt[2]*a^(3/4)*b^(9/4)) + ((b*c - a*d)^2*ArcTan[1 + (Sqr
t[2]*b^(1/4)*x)/a^(1/4)])/(2*Sqrt[2]*a^(3/4)*b^(9/4)) - ((b*c - a*d)^2*Log[Sqrt[
a] - Sqrt[2]*a^(1/4)*b^(1/4)*x + Sqrt[b]*x^2])/(4*Sqrt[2]*a^(3/4)*b^(9/4)) + ((b
*c - a*d)^2*Log[Sqrt[a] + Sqrt[2]*a^(1/4)*b^(1/4)*x + Sqrt[b]*x^2])/(4*Sqrt[2]*a
^(3/4)*b^(9/4))

_______________________________________________________________________________________

Rubi in Sympy [F]  time = 0., size = 0, normalized size = 0. \[ \frac{d^{2} x^{5}}{5 b} - \frac{\left (a d - 2 b c\right ) \int d\, dx}{b^{2}} - \frac{\sqrt{2} \left (a d - b c\right )^{2} \log{\left (- \sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x + \sqrt{a} + \sqrt{b} x^{2} \right )}}{8 a^{\frac{3}{4}} b^{\frac{9}{4}}} + \frac{\sqrt{2} \left (a d - b c\right )^{2} \log{\left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x + \sqrt{a} + \sqrt{b} x^{2} \right )}}{8 a^{\frac{3}{4}} b^{\frac{9}{4}}} - \frac{\sqrt{2} \left (a d - b c\right )^{2} \operatorname{atan}{\left (1 - \frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}} \right )}}{4 a^{\frac{3}{4}} b^{\frac{9}{4}}} + \frac{\sqrt{2} \left (a d - b c\right )^{2} \operatorname{atan}{\left (1 + \frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}} \right )}}{4 a^{\frac{3}{4}} b^{\frac{9}{4}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((d*x**4+c)**2/(b*x**4+a),x)

[Out]

d**2*x**5/(5*b) - (a*d - 2*b*c)*Integral(d, x)/b**2 - sqrt(2)*(a*d - b*c)**2*log
(-sqrt(2)*a**(1/4)*b**(1/4)*x + sqrt(a) + sqrt(b)*x**2)/(8*a**(3/4)*b**(9/4)) +
sqrt(2)*(a*d - b*c)**2*log(sqrt(2)*a**(1/4)*b**(1/4)*x + sqrt(a) + sqrt(b)*x**2)
/(8*a**(3/4)*b**(9/4)) - sqrt(2)*(a*d - b*c)**2*atan(1 - sqrt(2)*b**(1/4)*x/a**(
1/4))/(4*a**(3/4)*b**(9/4)) + sqrt(2)*(a*d - b*c)**2*atan(1 + sqrt(2)*b**(1/4)*x
/a**(1/4))/(4*a**(3/4)*b**(9/4))

_______________________________________________________________________________________

Mathematica [A]  time = 0.172543, size = 231, normalized size = 0.91 \[ \frac{8 a^{3/4} b^{5/4} d^2 x^5-40 a^{3/4} \sqrt [4]{b} d x (a d-2 b c)-5 \sqrt{2} (b c-a d)^2 \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )+5 \sqrt{2} (b c-a d)^2 \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )-10 \sqrt{2} (b c-a d)^2 \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )+10 \sqrt{2} (b c-a d)^2 \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right )}{40 a^{3/4} b^{9/4}} \]

Antiderivative was successfully verified.

[In]  Integrate[(c + d*x^4)^2/(a + b*x^4),x]

[Out]

(-40*a^(3/4)*b^(1/4)*d*(-2*b*c + a*d)*x + 8*a^(3/4)*b^(5/4)*d^2*x^5 - 10*Sqrt[2]
*(b*c - a*d)^2*ArcTan[1 - (Sqrt[2]*b^(1/4)*x)/a^(1/4)] + 10*Sqrt[2]*(b*c - a*d)^
2*ArcTan[1 + (Sqrt[2]*b^(1/4)*x)/a^(1/4)] - 5*Sqrt[2]*(b*c - a*d)^2*Log[Sqrt[a]
- Sqrt[2]*a^(1/4)*b^(1/4)*x + Sqrt[b]*x^2] + 5*Sqrt[2]*(b*c - a*d)^2*Log[Sqrt[a]
 + Sqrt[2]*a^(1/4)*b^(1/4)*x + Sqrt[b]*x^2])/(40*a^(3/4)*b^(9/4))

_______________________________________________________________________________________

Maple [B]  time = 0.003, size = 436, normalized size = 1.7 \[{\frac{{d}^{2}{x}^{5}}{5\,b}}-{\frac{a{d}^{2}x}{{b}^{2}}}+2\,{\frac{dxc}{b}}+{\frac{a\sqrt{2}{d}^{2}}{4\,{b}^{2}}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-1 \right ) }-{\frac{\sqrt{2}cd}{2\,b}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-1 \right ) }+{\frac{\sqrt{2}{c}^{2}}{4\,a}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-1 \right ) }+{\frac{a\sqrt{2}{d}^{2}}{8\,{b}^{2}}\sqrt [4]{{\frac{a}{b}}}\ln \left ({1 \left ({x}^{2}+\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) \left ({x}^{2}-\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) ^{-1}} \right ) }-{\frac{\sqrt{2}cd}{4\,b}\sqrt [4]{{\frac{a}{b}}}\ln \left ({1 \left ({x}^{2}+\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) \left ({x}^{2}-\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) ^{-1}} \right ) }+{\frac{\sqrt{2}{c}^{2}}{8\,a}\sqrt [4]{{\frac{a}{b}}}\ln \left ({1 \left ({x}^{2}+\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) \left ({x}^{2}-\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) ^{-1}} \right ) }+{\frac{a\sqrt{2}{d}^{2}}{4\,{b}^{2}}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+1 \right ) }-{\frac{\sqrt{2}cd}{2\,b}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+1 \right ) }+{\frac{\sqrt{2}{c}^{2}}{4\,a}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+1 \right ) } \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((d*x^4+c)^2/(b*x^4+a),x)

[Out]

1/5*d^2*x^5/b-d^2/b^2*a*x+2*d/b*x*c+1/4/b^2*(a/b)^(1/4)*a*2^(1/2)*arctan(2^(1/2)
/(a/b)^(1/4)*x-1)*d^2-1/2/b*(a/b)^(1/4)*2^(1/2)*arctan(2^(1/2)/(a/b)^(1/4)*x-1)*
c*d+1/4*(a/b)^(1/4)/a*2^(1/2)*arctan(2^(1/2)/(a/b)^(1/4)*x-1)*c^2+1/8/b^2*(a/b)^
(1/4)*a*2^(1/2)*ln((x^2+(a/b)^(1/4)*x*2^(1/2)+(a/b)^(1/2))/(x^2-(a/b)^(1/4)*x*2^
(1/2)+(a/b)^(1/2)))*d^2-1/4/b*(a/b)^(1/4)*2^(1/2)*ln((x^2+(a/b)^(1/4)*x*2^(1/2)+
(a/b)^(1/2))/(x^2-(a/b)^(1/4)*x*2^(1/2)+(a/b)^(1/2)))*c*d+1/8*(a/b)^(1/4)/a*2^(1
/2)*ln((x^2+(a/b)^(1/4)*x*2^(1/2)+(a/b)^(1/2))/(x^2-(a/b)^(1/4)*x*2^(1/2)+(a/b)^
(1/2)))*c^2+1/4/b^2*(a/b)^(1/4)*a*2^(1/2)*arctan(2^(1/2)/(a/b)^(1/4)*x+1)*d^2-1/
2/b*(a/b)^(1/4)*2^(1/2)*arctan(2^(1/2)/(a/b)^(1/4)*x+1)*c*d+1/4*(a/b)^(1/4)/a*2^
(1/2)*arctan(2^(1/2)/(a/b)^(1/4)*x+1)*c^2

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((d*x^4 + c)^2/(b*x^4 + a),x, algorithm="maxima")

[Out]

Exception raised: ValueError

_______________________________________________________________________________________

Fricas [A]  time = 0.243164, size = 1458, normalized size = 5.76 \[ \text{result too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((d*x^4 + c)^2/(b*x^4 + a),x, algorithm="fricas")

[Out]

1/20*(4*b*d^2*x^5 - 20*b^2*(-(b^8*c^8 - 8*a*b^7*c^7*d + 28*a^2*b^6*c^6*d^2 - 56*
a^3*b^5*c^5*d^3 + 70*a^4*b^4*c^4*d^4 - 56*a^5*b^3*c^3*d^5 + 28*a^6*b^2*c^2*d^6 -
 8*a^7*b*c*d^7 + a^8*d^8)/(a^3*b^9))^(1/4)*arctan(a*b^2*(-(b^8*c^8 - 8*a*b^7*c^7
*d + 28*a^2*b^6*c^6*d^2 - 56*a^3*b^5*c^5*d^3 + 70*a^4*b^4*c^4*d^4 - 56*a^5*b^3*c
^3*d^5 + 28*a^6*b^2*c^2*d^6 - 8*a^7*b*c*d^7 + a^8*d^8)/(a^3*b^9))^(1/4)/((b^2*c^
2 - 2*a*b*c*d + a^2*d^2)*x + (b^2*c^2 - 2*a*b*c*d + a^2*d^2)*sqrt((a^2*b^4*sqrt(
-(b^8*c^8 - 8*a*b^7*c^7*d + 28*a^2*b^6*c^6*d^2 - 56*a^3*b^5*c^5*d^3 + 70*a^4*b^4
*c^4*d^4 - 56*a^5*b^3*c^3*d^5 + 28*a^6*b^2*c^2*d^6 - 8*a^7*b*c*d^7 + a^8*d^8)/(a
^3*b^9)) + (b^4*c^4 - 4*a*b^3*c^3*d + 6*a^2*b^2*c^2*d^2 - 4*a^3*b*c*d^3 + a^4*d^
4)*x^2)/(b^4*c^4 - 4*a*b^3*c^3*d + 6*a^2*b^2*c^2*d^2 - 4*a^3*b*c*d^3 + a^4*d^4))
)) + 5*b^2*(-(b^8*c^8 - 8*a*b^7*c^7*d + 28*a^2*b^6*c^6*d^2 - 56*a^3*b^5*c^5*d^3
+ 70*a^4*b^4*c^4*d^4 - 56*a^5*b^3*c^3*d^5 + 28*a^6*b^2*c^2*d^6 - 8*a^7*b*c*d^7 +
 a^8*d^8)/(a^3*b^9))^(1/4)*log(a*b^2*(-(b^8*c^8 - 8*a*b^7*c^7*d + 28*a^2*b^6*c^6
*d^2 - 56*a^3*b^5*c^5*d^3 + 70*a^4*b^4*c^4*d^4 - 56*a^5*b^3*c^3*d^5 + 28*a^6*b^2
*c^2*d^6 - 8*a^7*b*c*d^7 + a^8*d^8)/(a^3*b^9))^(1/4) + (b^2*c^2 - 2*a*b*c*d + a^
2*d^2)*x) - 5*b^2*(-(b^8*c^8 - 8*a*b^7*c^7*d + 28*a^2*b^6*c^6*d^2 - 56*a^3*b^5*c
^5*d^3 + 70*a^4*b^4*c^4*d^4 - 56*a^5*b^3*c^3*d^5 + 28*a^6*b^2*c^2*d^6 - 8*a^7*b*
c*d^7 + a^8*d^8)/(a^3*b^9))^(1/4)*log(-a*b^2*(-(b^8*c^8 - 8*a*b^7*c^7*d + 28*a^2
*b^6*c^6*d^2 - 56*a^3*b^5*c^5*d^3 + 70*a^4*b^4*c^4*d^4 - 56*a^5*b^3*c^3*d^5 + 28
*a^6*b^2*c^2*d^6 - 8*a^7*b*c*d^7 + a^8*d^8)/(a^3*b^9))^(1/4) + (b^2*c^2 - 2*a*b*
c*d + a^2*d^2)*x) + 20*(2*b*c*d - a*d^2)*x)/b^2

_______________________________________________________________________________________

Sympy [A]  time = 3.88518, size = 187, normalized size = 0.74 \[ \operatorname{RootSum}{\left (256 t^{4} a^{3} b^{9} + a^{8} d^{8} - 8 a^{7} b c d^{7} + 28 a^{6} b^{2} c^{2} d^{6} - 56 a^{5} b^{3} c^{3} d^{5} + 70 a^{4} b^{4} c^{4} d^{4} - 56 a^{3} b^{5} c^{5} d^{3} + 28 a^{2} b^{6} c^{6} d^{2} - 8 a b^{7} c^{7} d + b^{8} c^{8}, \left ( t \mapsto t \log{\left (\frac{4 t a b^{2}}{a^{2} d^{2} - 2 a b c d + b^{2} c^{2}} + x \right )} \right )\right )} + \frac{d^{2} x^{5}}{5 b} - \frac{x \left (a d^{2} - 2 b c d\right )}{b^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((d*x**4+c)**2/(b*x**4+a),x)

[Out]

RootSum(256*_t**4*a**3*b**9 + a**8*d**8 - 8*a**7*b*c*d**7 + 28*a**6*b**2*c**2*d*
*6 - 56*a**5*b**3*c**3*d**5 + 70*a**4*b**4*c**4*d**4 - 56*a**3*b**5*c**5*d**3 +
28*a**2*b**6*c**6*d**2 - 8*a*b**7*c**7*d + b**8*c**8, Lambda(_t, _t*log(4*_t*a*b
**2/(a**2*d**2 - 2*a*b*c*d + b**2*c**2) + x))) + d**2*x**5/(5*b) - x*(a*d**2 - 2
*b*c*d)/b**2

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.218389, size = 477, normalized size = 1.89 \[ \frac{\sqrt{2}{\left (\left (a b^{3}\right )^{\frac{1}{4}} b^{2} c^{2} - 2 \, \left (a b^{3}\right )^{\frac{1}{4}} a b c d + \left (a b^{3}\right )^{\frac{1}{4}} a^{2} d^{2}\right )} \arctan \left (\frac{\sqrt{2}{\left (2 \, x + \sqrt{2} \left (\frac{a}{b}\right )^{\frac{1}{4}}\right )}}{2 \, \left (\frac{a}{b}\right )^{\frac{1}{4}}}\right )}{4 \, a b^{3}} + \frac{\sqrt{2}{\left (\left (a b^{3}\right )^{\frac{1}{4}} b^{2} c^{2} - 2 \, \left (a b^{3}\right )^{\frac{1}{4}} a b c d + \left (a b^{3}\right )^{\frac{1}{4}} a^{2} d^{2}\right )} \arctan \left (\frac{\sqrt{2}{\left (2 \, x - \sqrt{2} \left (\frac{a}{b}\right )^{\frac{1}{4}}\right )}}{2 \, \left (\frac{a}{b}\right )^{\frac{1}{4}}}\right )}{4 \, a b^{3}} + \frac{\sqrt{2}{\left (\left (a b^{3}\right )^{\frac{1}{4}} b^{2} c^{2} - 2 \, \left (a b^{3}\right )^{\frac{1}{4}} a b c d + \left (a b^{3}\right )^{\frac{1}{4}} a^{2} d^{2}\right )}{\rm ln}\left (x^{2} + \sqrt{2} x \left (\frac{a}{b}\right )^{\frac{1}{4}} + \sqrt{\frac{a}{b}}\right )}{8 \, a b^{3}} - \frac{\sqrt{2}{\left (\left (a b^{3}\right )^{\frac{1}{4}} b^{2} c^{2} - 2 \, \left (a b^{3}\right )^{\frac{1}{4}} a b c d + \left (a b^{3}\right )^{\frac{1}{4}} a^{2} d^{2}\right )}{\rm ln}\left (x^{2} - \sqrt{2} x \left (\frac{a}{b}\right )^{\frac{1}{4}} + \sqrt{\frac{a}{b}}\right )}{8 \, a b^{3}} + \frac{b^{4} d^{2} x^{5} + 10 \, b^{4} c d x - 5 \, a b^{3} d^{2} x}{5 \, b^{5}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((d*x^4 + c)^2/(b*x^4 + a),x, algorithm="giac")

[Out]

1/4*sqrt(2)*((a*b^3)^(1/4)*b^2*c^2 - 2*(a*b^3)^(1/4)*a*b*c*d + (a*b^3)^(1/4)*a^2
*d^2)*arctan(1/2*sqrt(2)*(2*x + sqrt(2)*(a/b)^(1/4))/(a/b)^(1/4))/(a*b^3) + 1/4*
sqrt(2)*((a*b^3)^(1/4)*b^2*c^2 - 2*(a*b^3)^(1/4)*a*b*c*d + (a*b^3)^(1/4)*a^2*d^2
)*arctan(1/2*sqrt(2)*(2*x - sqrt(2)*(a/b)^(1/4))/(a/b)^(1/4))/(a*b^3) + 1/8*sqrt
(2)*((a*b^3)^(1/4)*b^2*c^2 - 2*(a*b^3)^(1/4)*a*b*c*d + (a*b^3)^(1/4)*a^2*d^2)*ln
(x^2 + sqrt(2)*x*(a/b)^(1/4) + sqrt(a/b))/(a*b^3) - 1/8*sqrt(2)*((a*b^3)^(1/4)*b
^2*c^2 - 2*(a*b^3)^(1/4)*a*b*c*d + (a*b^3)^(1/4)*a^2*d^2)*ln(x^2 - sqrt(2)*x*(a/
b)^(1/4) + sqrt(a/b))/(a*b^3) + 1/5*(b^4*d^2*x^5 + 10*b^4*c*d*x - 5*a*b^3*d^2*x)
/b^5